home *** CD-ROM | disk | FTP | other *** search
/ QuickTime 2.0 Developer Kit / QuickTime 2.0 Developer Kit.iso / mac / MAC / Programming Stuff / Sample Code / Movie Toolbox / Inside Mac Movie Toolbox Code / mtb9.c < prev    next >
Encoding:
Text File  |  1994-12-05  |  636 b   |  33 lines  |  [TEXT/MPS ]

  1. /*
  2.   File:            mtb9.c
  3.   Contains:        Drawing Functions
  4.   Written by:    DTS and QT Engineering
  5.   Copyright:    © 1992-1994 by Apple Computer, Inc., all rights reserved.
  6.   Change History (most recent first):
  7.   <1>         12/4/94    khs        changed the format of the file to the new look and feel
  8.   To Do:
  9. */
  10.  
  11.  
  12. // INCLUDE FILES
  13. #include "mtb.h"
  14.  
  15.  
  16. // FUNCTIONS
  17. void DrawFrame(const Rect* trackFrame,
  18.                long curSample)
  19. {
  20.     Str255 numStr;
  21.  
  22.     ForeColor(redColor);
  23.     PaintRect(trackFrame);
  24.  
  25.     ForeColor(blueColor);
  26.     NumToString(curSample, numStr);
  27.     MoveTo(trackFrame->right / 2, trackFrame->bottom / 2);
  28.     TextSize(trackFrame->bottom / 3);
  29.     DrawString(numStr);
  30. }
  31.  
  32.  
  33.